#include"echo_server.hpp"
#include"command.hpp"
#include<memory>

int main()
{
    command cmd;
    std::unique_ptr<server> server_uptr=std::make_unique<server>([&cmd](std::string& mesg)->std::string{
        return cmd.excute(mesg);
    });
    //初始化服务器
    server_uptr->InitServer();
    server_uptr->start();

    return 0;
}